<?php
namespace app\common\model\tyyh;

class UserWalletBalanceRefund extends CUBase {
    protected $statusEnum = 'UserWalletBalanceRefundStatus';

    protected static function init()
    {
        parent::init();
        
        // 注册 before_insert 事件
        self::beforeInsert(function ($data) {
            $data['status'] = loadEnum('UserWalletBalanceRefundStatus')->code2key('daishenhe');
            $data['remark'] = '';
            return $data;
        });
    }
}
